import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

//引用element-ui和axios
import element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
Vue.use(element)
Vue.prototype.$http = axios

//拦截axios请求
//引用mockjs（在src目录下有个mock目录，下面有个mockServe.js文件，这个文件主要是模拟数据）
import '@/mock/mockServe'


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
